$color31: #313131;
$colorf0: #f0f0f0;
$colorfff: #fff;
$colore7: #e7e7e7;
$colorfa: #fafafa;
$color62: #626262;
$colord4: #d4d4d4;
$colora0: #a0a0a0;
$red: #ff5a5f;
$yellow: #feb501;
$color80: #80bd01;
$gap: 5px;

body {
  height: 100%;
  width: 100%;
  font-size: 24px;
  color: #313131;
  overflow-x: hidden;
  line-height: 1;
  background-image: url('../../images/loading.gif');
  background-repeat: no-repeat;
  background-position: center 250px;
}

html {
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  line-height: 1.6;
  font-family: -apple-system-font, 'Helvetica Neue', sans-serif;
}

* {
  margin: 0;
  padding: 0;
}

a img {
  border: 0;
}

a {
  text-decoration: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.mt5 {
  margin-top: $gap;
}

.mt10 {
  margin-top: $gap * 2;
}

.color80 {
  color: #42b983;
}

.clear {
  zoom: 1;
  &:after {
    content: '';
    display: table;
    clear: both;
  }
}

#app {
  height: 100%;
}

.display-flex {
  display: -moz-box;
  /* Firefox */
  display: -ms-flexbox;
  /* IE10 */
  display: -webkit-box;
  /* Safari */
  display: -webkit-flex;
  /* Chrome, WebKit */
  display: flexbox;
  display: flex;
}

.break {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flex-wrp {
  background: #fff;
}

.user {
  width: 100%;
  margin: $gap * 2 0;
  padding: 0 $gap * 2;
  display: flex;
  align-items: center;

  .tab {
    display: inline-block;
    width: $gap * 8;
    color: $color62;
    border-radius: $gap;
    background-color: $colore7;
    margin-right: $gap * 2;
    text-align: center;
    height: $gap * 4;
    line-height: $gap * 4;
    vertical-align: middle;
  }
  .good {
    background-color: $color80;
    color: $colorfff;
  }
  .title {
    font-size: $gap * 8;
    font-weight: bold;
    display: block;
    width: 100%;
    flex: 1;
    @extend .break;
  }
  .head {
    display: inline-block;
    width: $gap * 14;
    height: $gap * 14;
    margin-right: $gap * 2;
    border-radius: 10px;
    img {
      width: $gap * 14;
      border: 2px solid #fff6e6;
      border-radius: 50%;
    }
  }
  .info {
    overflow: hidden;
    display: block;
    width: 100%;
    flex: 1;
    &:after {
      clear: both;
    }
    .t-title {
      font-size: $gap * 5;
      font-weight: bold;
      width: 100%;
      color: #333;
      @extend .break;
    }
    .mt12 {
      margin-top: 12px;
    }
    .cl {
      display: inline-block;
      width: 68%;
      .name {
        color: $color62;
      }
      .mt10 {
        margin-top: $gap * 2;
      }
    }
    .cr {
      width: 30%;
      display: inline-block;
      text-align: right;
      .name {
        margin-top: $gap * 2;
        color: $color80;
        font-size: $gap * 4;
      }
    }
  }
}

.reply_content {
  padding: 0 $gap * 3;
  margin-bottom: $gap * 3;
  img {
    width: auto\9;
    height: auto;
    max-width: 100%;
    vertical-align: middle;
    border: 0;
    -ms-interpolation-mode: bicubic;
  }
  p {
    line-height: 1.3;
  }
}

.no-data {
  width: 100%;
  height: 100%;
  padding: 40% 0;
  color: $colord4;
  display: inline-block;
  font-size: 18px;
  text-align: center;
}

/*
**   rework 分界线
**   ------------
*/

/* 颜色 */

$white: #ffffff;
$light: #d5dbdb;
$title: #2c3e50;
$text: #34495e;

/* 基础布局 */

$padding: 15px;
$border: 1px solid $light;
$radius: 4px;
$font-title: 28px;
$font-content: 28px;
$font-info: 24px;
$font-tag: 20px;

/* 综合布局 */

.text-overflow {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.title-nooverflow {
  color: $title;
  font-size: $font-title;
  line-height: 1.5;
}

.title {
  color: $title;
  font-size: $font-title;
  line-height: 1.5;
  @extend .text-overflow;
}

.markdown-text {
  font-size: 28px;
}

.tag {
  padding: 5px 6px;
  font-size: $font-tag;
  font-weight: 400;
  border-radius: $radius;
  background-color: $colore7;
  text-align: center;
  vertical-align: middle;
}

.user-avatar {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
  border: 1px solid #f3f3f3;
}

.week-alert {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  text-align: center;
  background-color: rgba(75, 75, 75, 0.85);
  color: #fff;
  padding: 9px 20px;
  font-size: 15px;
  z-index: 999;
  &.alert-show {
    animation: show 2s;
  }
  @keyframes show {
    0% {
      transform: translateY(-100%);
    }
    20% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(0);
    }
    80% {
      transform: translateY(0);
    }
    100% {
      transform: translateY(-100%);
    }
  }
}
